From ee870c99e53e3e5a9d4ac69c5b9952e385427b38 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 7 Mar 2014 16:14:57 -0800 Subject: [PATCH] Update deps and Makefile --- .gitmodules | 3 +++ Makefile | 18 +++++++++++++++--- libs/hammer.rs | 1 + 3 files changed, 19 insertions(+), 3 deletions(-) create mode 160000 libs/hammer.rs diff --git a/.gitmodules b/.gitmodules index cfadd7ca2..3d7b2a79a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "libs/rust-toml"] path = libs/rust-toml url = https://github.com/mneumann/rust-toml +[submodule "libs/hammer.rs"] + path = libs/hammer.rs + url = https://github.com/wycats/hammer.rs.git diff --git a/Makefile b/Makefile index b20c65bed..b1639adb0 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,13 @@ RUSTC_TARGET = target RUSTC_FLAGS ?= --out-dir $(RUSTC_TARGET) -L $(RUSTC_TARGET)/libs TOML_LIB := $(shell rustc --crate-file-name libs/rust-toml/src/toml/lib.rs) +HAMMER_LIB := $(shell rustc --crate-file-name libs/hammer.rs/src/lib.rs) -default: target/cargo-rustc target/cargo-verify-project +default: dependencies commands + +dependencies: target/libs/$(TOML_LIB) target/libs/$(HAMMER_LIB) + +commands: target/cargo-rustc target/cargo-verify-project target/cargo-read-manifest clean: rm -rf target @@ -14,11 +19,18 @@ target/cargo-rustc: target target/libs/$(TOML_LIB) commands/cargo-rustc/main.rs target/cargo-verify-project: target target/libs/$(TOML_LIB) commands/cargo-verify-project/main.rs rustc commands/cargo-verify-project/main.rs $(RUSTC_FLAGS) -target/libs/$(TOML_LIB): libs/rust-toml/src/toml/lib.rs +target/cargo-read-manifest: target target/libs/$(TOML_LIB) target/libs/$(HAMMER_LIB) commands/cargo-read-manifest/main.rs + rustc commands/cargo-read-manifest/main.rs $(RUSTC_FLAGS) + +target/libs/$(TOML_LIB): target libs/rust-toml/src/toml/lib.rs cd libs/rust-toml && make cp libs/rust-toml/lib/*.rlib target/libs +target/libs/$(HAMMER_LIB): target libs/hammer.rs/src/lib.rs + cd libs/hammer.rs && make + cp libs/hammer.rs/target/*.rlib target/libs + target: mkdir -p $(RUSTC_TARGET)/libs -.PHONY: default clean +.PHONY: default clean dependencies commands diff --git a/libs/hammer.rs b/libs/hammer.rs new file mode 160000 index 000000000..110671804 --- /dev/null +++ b/libs/hammer.rs @@ -0,0 +1 @@ +Subproject commit 110671804fe9603a3ff25cf5a8e0fc63df846146 -- 2.30.2